function initialize() {

    var latlng = new google.maps.LatLng(-26.504835, -49.091034);
    var myOptions = {
      zoom: 12,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("gmap"), myOptions);

	google.maps.event.addListener(map, 'click', function(event) {
		//LoadSensors(map);
	});

	LoadSensors(map);
	
}

function LoadSensors(map){

	$.ajax({
		type: "GET",
		url: "rssf.json",
		dataType: "json",
		start: $.blockUI({message: 'Carregando...'}),
		stop:  $.unblockUI(),
		success: function(data){
			$.each(data, function(i,item){
				var latlng = new google.maps.LatLng(item.x, item.y);
				var marker = new google.maps.Marker({
					position: latlng,
					title: item.loc,
					map: map
				});
				marker.setMap(map); 
			});
		}
	});

}